/*
 Navicat Premium Data Transfer

 Source Server         : 公司阿里云
 Source Server Type    : SQL Server
 Source Server Version : 13005026
 Source Host           : 121.40.101.29:1433
 Source Catalog        : scm_main_sfl_visit_dev
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13005026
 File Encoding         : 65001

 Date: 30/12/2020 14:54:01
*/


-- ----------------------------
-- Table structure for bd_sys_log
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[bd_sys_log]') AND type IN ('U'))
	DROP TABLE [dbo].[bd_sys_log]
GO

CREATE TABLE [dbo].[bd_sys_log] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [username] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [operation] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [method] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [params] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ip] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [createDate] varchar(max) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[bd_sys_log] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'用户名(登陆人)',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'username'
GO

EXEC sp_addextendedproperty
'MS_Description', N'操作',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'operation'
GO

EXEC sp_addextendedproperty
'MS_Description', N'方法名',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'method'
GO

EXEC sp_addextendedproperty
'MS_Description', N'参数',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'params'
GO

EXEC sp_addextendedproperty
'MS_Description', N'ip地址',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'ip'
GO

EXEC sp_addextendedproperty
'MS_Description', N'操作时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_log',
'COLUMN', N'createDate'
GO

